package com.learn

object lesson07 {
  def main(args: Array[String]): Unit = {
    class Person
    class Student extends Person
    val p: Person = new Student
    println(p.isInstanceOf[Person])
    println(p.isInstanceOf[Student])
    println(p.getClass == classOf[Person])
    println(p.getClass == classOf[Student])
  }
}
